package kr.co.dayve.site.management.dao;

import kr.co.dayve.site.domain.Country;
import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

import java.util.List;


public class CountryDaoImpl extends SqlMapClientDaoSupport implements CountryDao {
	public List getCountryList(){
        return getSqlMapClientTemplate().queryForList("COUNTRY.getCountryList");
    }
    public String getTotalCountCountry(){
        return (String)getSqlMapClientTemplate().queryForObject("COUNTRY.getTotalCountCountry");
    }
    public Country getCountryByCode(String country_code){
        return (Country)getSqlMapClientTemplate().queryForObject("COUNTRY.getCountryByCode", country_code);
    }
}
